package cn.dkk.behavior_design.stategy;

import cn.dkk.behavior_design.stategy.impl.GatherClass;
import cn.dkk.behavior_design.stategy.impl.StrategyA;
import cn.dkk.behavior_design.stategy.impl.StrategyB;

/**
 * @author dkk
 * @date 2022/7/21
 * @desc
 */
public class Test {
    public static void main(String[] args) {
        GatherClass gatherClass = new GatherClass(new StrategyA());
        gatherClass.gatherShow();
        System.out.println("-------------------------");
        gatherClass.setStrategy(new StrategyB());
        gatherClass.gatherShow();
    }
}
